Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
With recent changes made in #161 and refactoring that followed in #163, it is now easy to add new resolvers.
This PR adds an experimental DNS-over-HTTP/3 resolver on top of the #163. Its implementation depends on quic-go module, as Go's STL is not ready for HTTP/3 yet.
To use the resolver one should replace the following line of code:
https://github.com/Ledorub/SpoofDPI/blob/e29f02d596df8f7355f8280c5622aa508ce89159/dns/dns.go#L38
with:
I used it for a day, and for me it was less stable and performant than the default DoH resolver. Some lookups take 100+ ms to resolve, some fails with timeout. It is not clear, what causes the issues. Is it a calling code, HTTP client & transport configuration or the
quic-go
module.